pub const BSL_LOG_LEVEL_SEC: u32 = 0;
pub const BSL_LOG_LEVEL_FATAL: u32 = 1;
pub const BSL_LOG_LEVEL_ERR: u32 = 2;
pub const BSL_LOG_LEVEL_WARN: u32 = 3;
pub const BSL_LOG_LEVEL_INFO: u32 = 4;
pub const BSL_LOG_LEVEL_DEBUG: u32 = 5;
pub const OPENHITLS_VERSION_S: &[u8; 28] = b"openHiTLS 0.2.0 15 May 2025\0";
pub const OPENHITLS_VERSION_I: u32 = 2097152;
pub const HITLS_VERSION_LEN: u32 = 150;
pub const BSL_LOG_BINLOG_TYPE_RUN: u32 = 1;
unsafe extern "C" {
    pub fn BSL_LOG_GetVersion(version: *mut ::std::os::raw::c_char, versionLen: *mut u32) -> i32;
}
unsafe extern "C" {
    pub fn BSL_LOG_GetVersionNum() -> u64;
}
pub type BSL_LOG_BinLogFixLenFunc = ::std::option::Option<
    unsafe extern "C" fn(
        logId: u32,
        logLevel: u32,
        logType: u32,
        format: *mut ::std::os::raw::c_void,
        para1: *mut ::std::os::raw::c_void,
        para2: *mut ::std::os::raw::c_void,
        para3: *mut ::std::os::raw::c_void,
        para4: *mut ::std::os::raw::c_void,
    ),
>;
pub type BSL_LOG_BinLogVarLenFunc = ::std::option::Option<
    unsafe extern "C" fn(
        logId: u32,
        logLevel: u32,
        logType: u32,
        format: *mut ::std::os::raw::c_void,
        para: *mut ::std::os::raw::c_void,
    ),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct BSL_LOG_BinLogFuncs {
    pub fixLenFunc: BSL_LOG_BinLogFixLenFunc,
    pub varLenFunc: BSL_LOG_BinLogVarLenFunc,
}
unsafe extern "C" {
    pub fn BSL_LOG_RegBinLogFunc(funcs: *const BSL_LOG_BinLogFuncs) -> i32;
}
unsafe extern "C" {
    pub fn BSL_LOG_SetBinLogLevel(level: u32) -> i32;
}
unsafe extern "C" {
    pub fn BSL_LOG_GetBinLogLevel() -> u32;
}
